package com.pq.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("cloud-storage")
public interface StorageApi {
    @GetMapping(value = "/storage/subtract")
    boolean subtract(@RequestParam("id") Long id);

    @GetMapping(value = "/storage/subtractError")
    boolean subtractError(@RequestParam("id") Long id);
}
